from zope.interface import Interface
# -*- Additional Imports Here -*-
from zope import schema

from my315ok.xtinfocontent import xtinfocontentMessageFactory as _

class IadMark(Interface):
    """ a mark interface for ad contenttypes,contain ad and ATFlashMovice"""
    pass

class Iad(Interface):
    """ad contenttype"""

    # -*- schema definition goes here -*-
    position = schema.TextLine(
        title=_(u"ad position"),
        required=True,
        description=_(u""),
    )
#
    swf = schema.Bytes(
        title=_(u"ad swf"),
        required=False,
        description=_(u"ad swf"),
    )
#
    image = schema.Bytes(
        title=_(u"ad image"),
        required=False,
        description=_(u"ad image"),
    )
#
    maxclicks = schema.Int(
        title=_(u"max clicks"),
        required=False,
        description=_(u"max clicks"),
    )
#
    clickused = schema.Int(
        title=_(u"click used"),
        required=False,
        description=_(u"click used"),
    )
#
    linkintern = schema.TextLine(
        title=_(u"intern link"),
        required=False,
        description=_(u"Intern link url"),
    )
#
    linkextern = schema.TextLine(
        title=_(u"extern link"),
        required=False,
        description=_(u"extern link url"),
    )
#
